# Generate eclipse projects.
function mvnee {
	mvn eclipse:clean eclipse:eclipse '-DdownloadSources=true'
}

# Install projects to local repository.
function mvni {
	mvn clean install '-Dmaven.test.skip' '-Denv=release'
}

# Print maven dependency tree
function mvndt {
	mvn dependency:tree '-Dverbose'
}

# Generate eclipse projects.
function mvnc {
	mvn eclipse:clean clean
}

# Clean maven local repository useless maven configuration.
function mvncr {
	Get-ChildItem -Path 'C:\Users\Joshua\.m2' -Include '*lastUpdated*' -Recurse | ForEach-Object ($_) { Remove-Item $_.FullName }
}

# Update version of Maven projects.
function mvnuv ($version) {
	mvn versions:set "-DnewVersion=$($version)" '-DgenerateBackupPoms=false'
}


Export-ModuleMember -Function mvnee
Export-ModuleMember -Function mvni
Export-ModuleMember -Function mvndt
Export-ModuleMember -Function mvnc
Export-ModuleMember -Function mvncr
Export-ModuleMember -Function mvnuv